package com.liuyou.duck2;

public class BeiJingDuck extends Duck {
    public BeiJingDuck() {
        flyBehavior = new NoFlyBehavior();
    }


    @Override
    public void display() {
        System.out.println("北京鸭");
    }

/*    @Override
    public void fly() {
//        super.fly();
        System.out.println("北京鸭不会游泳");
    }*/
}
